Q3CString_New
You can use theQ3CString_New
function to create a new C string.
TQ3StringObject Q3CString_New (const char *string);
string
- A pointer to a null-terminated C string.
DESCRIPTION
TheQ3CString_New
function returns, as its function result, a new string object of typekQ3StringTypeCString
using the sequence of characters pointed to by thestring
parameter. That sequence of characters should be a standard C string (that is, an array of characters terminated by the null character). The characters are copied into the new string object's private data, so you can dispose of the array pointed to by thestring
parameter ifQ3CString_New
returns successfully. IfQ3CString_New
cannot allocate memory for the string, it returns the valueNULL
.